<link rel="stylesheet" href="<%= basePath%>/modules/student/css/style.css">

<script type="application/javascript" src="<%= basePath%>/lib/jquery.min.js"></script>
<script type="application/javascript" src="<%= basePath%>/lib/sui.min.js"></script>
<script type="application/javascript" src="<%= basePath%>/public/js/util.js"></script>

<script>
    $('#newStrip').on('okHide', function(e){console.log('okHide')});
    $('#newStrip').on('okHidden', function(e){console.log('okHidden')});
    $('#newStrip').on('cancelHide', function(e){console.log('cancelHide')});
    $('#newStrip').on('cancelHidden', function(e){console.log('cancelHidden')});
    $('#leave-date1 input').datepicker({size:"small"});
    $('#leave-date2 input').datepicker({size:"small"});
</script>

<div class="body_scroll">
    <div class="frame-content">
        <ul class="info_list">
            <li class="li_header">
                上课时间
            </li>
            <% if ( checkTimeSet.weekdays ) { %>
            <li class="li_info">
                周一到周五
            </li>
            <li class="li_info">
                <% checkTimeSet.weekdays.forEach(function(checkTime) { %>
                <%  if ( checkTime.status == 1 ) { %>
                <%=lib.util.formatHourMinute(checkTime.startHour, checkTime.startMinute);%>
                -
                <%=lib.util.formatHourMinute(checkTime.endHour, checkTime.endMinute);%>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <%  } %>
                <%}) %>
                <!--8:00 - 11:40&nbsp;&nbsp;&nbsp;&nbsp;2:00 - 5:30-->
            </li>
            <% } %>
            <% if ( checkTimeSet.saturday ) { %>
            <li class="li_info">
                周六
            </li>
            <li class="li_footer">
                <% checkTimeSet.saturday.forEach(checkTime => { %>
                <%  if ( checkTime.status == 1 ) { %>
                <%=lib.util.formatHourMinute(checkTime.startHour, checkTime.startMinute);%>
                -
                <%=lib.util.formatHourMinute(checkTime.endHour, checkTime.endMinute);%>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <%  } %>
                <%}) %>
            </li>
            <% } %>
            <% if ( checkTimeSet.sunday ) { %>
            <li class="li_info">
                周日
            </li>
            <li class="li_footer">
                <% checkTimeSet.sunday.forEach(checkTime => { %>
                <%  if ( checkTime.status == 1 ) { %>
                <%=lib.util.formatHourMinute(checkTime.startHour, checkTime.startMinute);%>
                -
                <%=lib.util.formatHourMinute(checkTime.endHour, checkTime.endMinute);%>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <%  } %>
                <%}) %>
            </li>
            <% } %>
            <li class="li_header">
                最近节假日安排
            </li>
            <% if ( recentFestival ) { %>
            <li class="li_info">
                <%=recentFestival.end.getFullYear()%>年<%=recentFestival.name%>安排
            </li>
            <li class="li_footer">
                <%=lib.util.formatDate(recentFestival.start)%>
                -
                <%=lib.util.formatDate(recentFestival.end)%>
            </li>
            <% } %>
        </ul>
    </div>
</div>

<script type="application/javascript" src="<%= basePath%>/modules/student/js/student.js"></script>
